import _fetch from '@/Api/request.js'
function userlistApi (params) {
  return _fetch({
    url: '/user/list',
    params
  })
}
function userstatusApi (data) {
  return _fetch({
    url: '/user/status',
    method: 'post',
    data
  })
}
function userremoveApi (data) {
  return _fetch({
    url: '/user/remove',
    method: 'post',
    data
  })
}
function useraddApi (data) {
  return _fetch({
    url: '/user/add',
    method: 'post',
    data
  })
}
function usereditApi (data) {
  return _fetch({
    url: '/user/edit',
    method: 'post',
    data
  })
}
function usertokenApi (data) {
  return _fetch({
    url: '/token',
    method: 'post',
    data
  })
}

export {
  userlistApi,
  userstatusApi,
  userremoveApi,
  useraddApi,
  usereditApi,
  usertokenApi
}
